import dva from 'dva';
import createLoading from 'dva-loading';

const runtimeDva = window.g_plugins.mergeConfig('dva');
let app = dva({
  history: window.g_history,
  
  ...(runtimeDva.config || {}),
});

window.g_app = app;
app.use(createLoading());
(runtimeDva.plugins || []).forEach(plugin => {
  app.use(plugin);
});

app.model({ namespace: 'cancelorder', ...(require('C:/Users/27686/Desktop/qifenxiaoyuan/src/models/cancelorder.js').default) });
app.model({ namespace: 'checkinorder', ...(require('C:/Users/27686/Desktop/qifenxiaoyuan/src/models/checkinorder.js').default) });
app.model({ namespace: 'CreateNotice', ...(require('C:/Users/27686/Desktop/qifenxiaoyuan/src/models/CreateNotice.js').default) });
app.model({ namespace: 'createOrder', ...(require('C:/Users/27686/Desktop/qifenxiaoyuan/src/models/createOrder.js').default) });
app.model({ namespace: 'deleteNotice', ...(require('C:/Users/27686/Desktop/qifenxiaoyuan/src/models/deleteNotice.js').default) });
app.model({ namespace: 'getRoom', ...(require('C:/Users/27686/Desktop/qifenxiaoyuan/src/models/getRoom.js').default) });
app.model({ namespace: 'global', ...(require('C:/Users/27686/Desktop/qifenxiaoyuan/src/models/global.js').default) });
app.model({ namespace: 'list', ...(require('C:/Users/27686/Desktop/qifenxiaoyuan/src/models/list.js').default) });
app.model({ namespace: 'login', ...(require('C:/Users/27686/Desktop/qifenxiaoyuan/src/models/login.js').default) });
app.model({ namespace: 'menu', ...(require('C:/Users/27686/Desktop/qifenxiaoyuan/src/models/menu.js').default) });
app.model({ namespace: 'order', ...(require('C:/Users/27686/Desktop/qifenxiaoyuan/src/models/order.js').default) });
app.model({ namespace: 'orderdetails', ...(require('C:/Users/27686/Desktop/qifenxiaoyuan/src/models/orderdetails.js').default) });
app.model({ namespace: 'page', ...(require('C:/Users/27686/Desktop/qifenxiaoyuan/src/models/page.js').default) });
app.model({ namespace: 'pagednotice', ...(require('C:/Users/27686/Desktop/qifenxiaoyuan/src/models/pagednotice.js').default) });
app.model({ namespace: 'project', ...(require('C:/Users/27686/Desktop/qifenxiaoyuan/src/models/project.js').default) });
app.model({ namespace: 'room', ...(require('C:/Users/27686/Desktop/qifenxiaoyuan/src/models/room.js').default) });
app.model({ namespace: 'setting', ...(require('C:/Users/27686/Desktop/qifenxiaoyuan/src/models/setting.js').default) });
app.model({ namespace: 'updateNotice', ...(require('C:/Users/27686/Desktop/qifenxiaoyuan/src/models/updateNotice.js').default) });
app.model({ namespace: 'user', ...(require('C:/Users/27686/Desktop/qifenxiaoyuan/src/models/user.js').default) });
